package orm.inf;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import bean.entity.User;

public interface UserMapper {
	@Select ("select * from user where name = #{name}")
	User selectUser(@Param("name") String name);
	
	@Insert("insert into user values (#{uid} , #{name}, #{password} , #{email})")
	Boolean insert(User user);
}
